//package com.whxd.system.authority.web;
//
//import java.io.IOException;
//import java.util.List;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import com.fasterxml.jackson.core.JsonParseException;
//import com.fasterxml.jackson.databind.JsonMappingException;
//import com.whxd.framework.common.dto.PageResult;
//import com.whxd.system.authority.service.AuthorityService;
//
///**
// * 权限控制类
// * 
// * @author 张世鹏
// * @since 2013-6-15
// */
//@Controller
//@RequestMapping("/system/authority")
//public class AuthorityCtrl {
//
//	private final static Logger log = LoggerFactory.getLogger(AuthorityCtrl.class);
//
//	@Autowired
//	private AuthorityService authorityService;
//
//	/**
//	 * 查询所有权限
//	 * 
//	 * @author 张世鹏
//	 * @since 2013-8-9
//	 * @return
//	 * @throws JsonParseException
//	 * @throws JsonMappingException
//	 * @throws IOException
//	 */
//	@RequestMapping("/findAll")
//	@ResponseBody
//	public PageResult<AuthorityDto> findAll() throws JsonParseException, JsonMappingException, IOException {
//		log.info("查询所有权限");
//		List<AuthorityDto> lst = authorityService.findAll();
//		PageResult<AuthorityDto> result = new PageResult<AuthorityDto>();
//		result.setRows(lst);
//		result.setTotal(new Long(lst.size()));
//		return result;
//	}
//}
